
<?php
$DocRoot = $_SERVER['DOCUMENT_ROOT'];
include_once "$DocRoot/woflow/model/entity.php";
class UserProcess extends Entity
{
	public function __construct($bReadOnly=false)
	{
		parent::__construct("user_processes", "processID", $bReadOnly=false);
	}
	public function getProcessID()
	{
		return $this->processID;

	}
	public function setProcessID($processID)
	{
		$this->processID = $processID;

	}
	public function getProcessData()
	{
		return $this->processData;

	}
	public function setProcessData($processData)
	{
		$this->processData = $processData;

	}
	public function getProcessStartDate()
	{
		return $this->processStartDate;

	}
	public function setProcessStartDate($processStartDate)
	{
		$this->processStartDate = $processStartDate;

	}
	public function getProcessStartUser()
	{
		return $this->processStartUser;

	}
	public function setProcessStartUser($processStartUser)
	{
		$this->processStartUser = $processStartUser;

	}
	public function getProcessState()
	{
		return $this->processState;

	}
	public function setProcessState($processState)
	{
		$this->processState = $processState;

	}
	public function toJSON()
	{
		return json_decode(
			array(
				"processID" => $this->processID,
				"processData" => $this->processData,
				"processStartDate" => $this->processStartDate,
				"processStartUser" => $this->processStartUser,
				"processState" => $this->processState
			)
		);

	}

	private $processID;
	private $processData;
	private $processStartDate;
	private $processStartUser;
	private $processState;
}
?>
